package gof_001_创建型_Create.gof_001_单例_Singleton.gof_005_StaticInnerClass;

public class StaticInnerClassMain {
    public static void main(String[] args) {

        for (int i = 0; i < 1000; i++) {
            Thread t = new Thread(() -> {
                Student student = Student.getInstance();
                System.out.println(Thread.currentThread().getName() + "\t - " + student);
            });
            t.start();
        }
    }
}
